"""
page_object 模式
    -- https://martinfowler.com/bliki/PageObject.html
    -- https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/


"""


class TestDongCheDi:
    def setup(self):
        from basic.s13_index_page import IndexPage
        self.index_page = IndexPage()

    def teardown(self):
        self.index_page.close()

    def test_baidu(self):
        self.index_page.goto_index()
        self.index_page.click_news()
